package com.it.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.it.entity.Users;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @Author: wenjunjay
 * @Date: 2025/02/21/下午6:03
 * @Description:
 */
@Mapper
public interface UserMapper extends BaseMapper<Users> {
    @Select("select count(*) from users where username = #{username}")
    int selectByName(String username);

    @Select("select * from users where username = #{username}")
    Users getByName(String username);
}
